package cn.topevery.garden.entity.vo;

import cn.topevery.garden.entity.po.OcaFile;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(value = "绿地占用VO")
public class OcaVo implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "许可证号")
    private String permitCode;

    @ApiModelProperty(value = "街道")
    private String streetId;

    @ApiModelProperty(value = "街道名称")
    private String streetName;

    @ApiModelProperty(value = "审批方式 可选：1 行政许可、2 备案")
    private Integer auditType;

    @ApiModelProperty(value = "占用理由 ")
    private String ocaReason;

    @ApiModelProperty(value = "占用地址 ")
    private String ocaAddress;

    @ApiModelProperty(value = "占用单位 ")
    private String ocaDept;

    @ApiModelProperty(value = "占用面积 临时 ")
    private Float ocaMeasure;

    @ApiModelProperty(value = "占用面积 永久 ")
    private Float ocaMeasurePermanent;

    @ApiModelProperty(value = "迁移乔木数量")
    private Integer moveTreeCnt;

    @ApiModelProperty(value = "砍伐乔木数量")
    private Integer cutTreeCnt;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "许可日期")
    private LocalDateTime permitDate;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "有效期至")
    private LocalDateTime endDate;

    @ApiModelProperty(value = "附件")
    private List<OcaFile> fileList;
}
